<?php
require_once 'Clients.php';
require_once 'Businesses.php';
require_once 'Groups.php';
require_once 'Officers.php';
require_once 'Communities.php';
require_once '../application/modules/savings/models/SavingsAccounts.php';

class Admin_ClientController extends HTech_Controller_Action
{
    public function init()
    {  
        $cfg = array(
            'model' => 'Clients', 
            'form' => 'Emms_Form_Admin_Client',
            'config' => array('add' => 'clients')
        );
        parent::init($cfg);    
    }
    
    public function viewAction() {
        parent::viewAction();
        $savings = new SavingsAccounts();
        $this->view->Savings = $savings->find($this->view->Clients->d->ClientId)->current();
    }
}
